package com.itfreer.gis.map.dictionary;

import com.itfreer.form.api.dictionary.DictionaryEntity;
import com.itfreer.form.api.dictionary.LocalDictionaryBase;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

/**
 * 地图服务类型
 */
@Component
public class MapServiceType extends LocalDictionaryBase {

    @Override
    public String getDictionaryName() {
        return "d_map_service_type";
    }
    @Override
    protected List<DictionaryEntity> getDictionarys() {
        List<DictionaryEntity> list = new ArrayList<DictionaryEntity>();
        DictionaryEntity item = new DictionaryEntity();
        item.setId("1");
        item.setCode("1");
        item.setDisplay("WMS");
        item.setOrder(1);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("2");
        item.setCode("2");
        item.setDisplay("WMTS");
        item.setOrder(2);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("3");
        item.setCode("3");
        item.setDisplay("WFS");
        item.setOrder(3);
        list.add(item);

        item = new DictionaryEntity();
        item.setId("4");
        item.setCode("4");
        item.setDisplay("矢量切片");
        item.setOrder(4);
        list.add(item);

        return list;
    }
}
